package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data  //评论实体类
public class Comment {

    private int e_id;  //评价id
    private double e_type;  //评价类型:好 差
    private String e_content;  //评论内容
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date e_time;  //评论时间
    private int e_level;  //1,2,3,4,5评论级别
    private int m_id;  //商家外键
    private int u_id;  //用户外键

    public Comment(int e_id, double e_type, String e_content, Date e_time, int e_level, int m_id, int u_id) {
        this.e_id = e_id;
        this.e_type = e_type;
        this.e_content = e_content;
        this.e_time = e_time;
        this.e_level = e_level;
        this.m_id = m_id;
        this.u_id = u_id;
    }
}
